package com.chengzzz.czsee.network

import retrofit2.Call
import retrofit2.Callback
import retrofit2.Response
import retrofit2.await
import kotlin.coroutines.resume
import kotlin.coroutines.resumeWithException
import kotlin.coroutines.suspendCoroutine



object videoNetwork {
   private val videoService = ServiceCreator.create(videoService::class.java)

   suspend fun getVideoInfo(index :Int) = videoService.getVideoInfo(index).await()

   suspend fun searchVideoInfo(name :String) = videoService.searchVideoInfo(name).await()

}